package com.ruoyi.oos.self.mapper;

import com.ruoyi.oos.self.domain.OverrunRecordSelf;
import java.util.List;

/**
 * 超限记录Mapper接口
 * 
 * @author wzy1
 * @date 2020-07-06
 */
public interface OverrunRecordSelfMapper 
{
    /**
     * 查询超限记录
     * 
     * @param id 超限记录ID
     * @return 超限记录
     */
    public OverrunRecordSelf selectOverrunRecordSelfById(Long id);

    /**
     * 查询超限记录列表
     * 
     * @param overrunRecordSelf 超限记录
     * @return 超限记录集合
     */
    public List<OverrunRecordSelf> selectOverrunRecordSelfList(OverrunRecordSelf overrunRecordSelf);

    /**
     * 新增超限记录
     * 
     * @param overrunRecordSelf 超限记录
     * @return 结果
     */
    public int insertOverrunRecordSelf(OverrunRecordSelf overrunRecordSelf);

    /**
     * 修改超限记录
     * 
     * @param overrunRecordSelf 超限记录
     * @return 结果
     */
    public int updateOverrunRecordSelf(OverrunRecordSelf overrunRecordSelf);

    /**
     * 删除超限记录
     * 
     * @param id 超限记录ID
     * @return 结果
     */
    public int deleteOverrunRecordSelfById(Long id);

    /**
     * 批量删除超限记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOverrunRecordSelfByIds(String[] ids);
    
    public int deleteOverReturnRecordByBean(OverrunRecordSelf record);
}
